<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Document</title>
    <script src="../vue.js"></script>
  </head>

  <body>
    <div id="app">
      <p>{{jiage | dou}}</p>
    </div>
    <script>
      const vm = new Vue({
        el: "#app",
        data() {
          return {
            jiage: "1999",
          };
        },
        filters: {
          dou(value) {
            return value.replace("9", ",9");
          },
        },
      });
    </script>
  </body>
</html>
